<div class="nav">
    <a class="sel" href="{:U('index')}">系统邮箱配置</a>
    <a href="{:U('add')}">添加系统邮箱</a>
</div>
<div class="list">
    <table class="table_list">
        <thead>
            <tr>
                <td>邮箱</td>
                <td>SMTP服务器</td>
                <td width="60px">端口</td>
                <td width="60px">用户名</td>
                <td width="60px">SSL</td>
                <td width="60px">启用</td>
                <td width="120px">操作</td>
            </tr>
        </thead>
        <tbody> 
        <foreach name="list" item="list">
            <tr>
            <td>{$list.email}</td>
            <td>{$list.smtp}</td>
            <td>{$list.port}</td>
            <td>{$list.username}</td>
            <td>{$list['ssl']?'是':'否'}</td>
            <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.id}">{$list.is_enable}</td>
            <td><a class="btn_a" href="{:U('edit',Array('id'=>$list['id']))}">修改</a>&nbsp;<a class="btn_a2" href="{:U('del',Array('id'=>$list['id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="9"><div class="page">{$page}</div></td></tr>
        </tfoot>
    </table>
</div>
<div>
    <form method="post" action="{:U('sendMail')}" >
       发送测试邮箱到：<input type="text" name="email" id="email" /> <input type="submit" class="btn_a" value="发送" />
    </form>
</div>
